<?php
namespace app\home\controller;
use app\home\controller\Common;

use app\home\model\Fillblank as Fblank;
class Fillblank extends Common
{
    /**
     * 取出指定id的数据
     * @access public
     * @param string
     * return array
     */
    public static function getInfoById($ids){
        if($ids){
            $single = new Fblank();
            $data = $single->getInfoByIds($ids);
            return $data;
        }else{
            return false;
        }
    }
    /**
     * 取出指定id的答案
     * @access public
     * @param string
     * return string
     */
    public static function getAnswerById($ids){
        if($ids){
            $single = new \app\home\model\Fillblank();
            $data = $single->where('id', $ids)
                ->field('answer')
                ->find();
            return $data;
        }else{
            return false;
        }
    }
}
